package com.tencreat.domain.mall.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.tencreat.domain.mall.MallGoodsCollageOrder;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

@Data
@ApiModel("秒杀商品详情")
public class ResGoodsCollageDetailVO extends ResGoodsCollageListAppVO {
    @ApiModelProperty(value = "商品宣传图")
    public List<String> gallery;

    @ApiModelProperty(value = "详情")
    public String detail;

    @ApiModelProperty(value = "邮费")
    private BigDecimal postage;

    @ApiModelProperty(value = "是否收藏")
    private Boolean isCollect;

    @ApiModelProperty("销量")
    private Long commoditySales;

    @ApiModelProperty("预计销量")
    private Long expectCommoditySales;

    public String image;

    public String image2;

    public Long normsId;

    @ApiModelProperty("库存")
    public Long inventory;

    public List<MallGoodsCollageOrder> collageOrder;

    @ApiModelProperty("活动时间-开始时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime startTime;
}
